package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.HotelLike;
import cn.wolfcode.trip.base.domain.HotelViews;
import cn.wolfcode.trip.base.mapper.HotelLikeMapper;
import cn.wolfcode.trip.base.mapper.HotelViewsMapper;
import cn.wolfcode.trip.base.service.IHotelLikeService;
import cn.wolfcode.trip.base.service.IHotelViewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HotelViewsServiceImpl implements IHotelViewsService {
    @Autowired
    private HotelViewsMapper hotelViewsMapper;


    @Override
    public HotelViews getViewsRecord(HotelViews hotelViews) {

        return hotelViewsMapper.selectViewsRecord(hotelViews);
    }

    @Override
    public void insertPageview(HotelViews viewsRecord) {
        hotelViewsMapper.insert(viewsRecord);
    }
}
